import Request from "../utils/request"

const request = new Request().http


export function getList(data) {
  return request({
    url: "api/school/student/getStudentList", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

export function getDetail(data) {
  return request({
    url: "api/school/student/getUserDetail", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}
export function savePassword(data) {
  return request({
    url: "api/school/student/savePassword", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

export function add(data) {
  return request({
    url: "api/school/student/addUser", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}
export function editInfo(data) {
  return request({
    url: "api/school/student/saveUserInfo", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}

export function del(data) {
  return request({
    url: "api/school/student/delUser", //请求头
    method: "post", //请求方式
    data: data //请求数据
  })
}
